package com.lh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lh.mapper.UserMapper;
import com.lh.pojo.User;
import com.lh.service.UserService;

/**
 * @Description:现在的你决定了未来的你
 * @Company: www.lihong.com
 * @ClassName:UserServiceImpl
 * @author 李宏
 * @date 2018年1月30日下午2:21:17
 * @version 3.0
 */
@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper um;

	public List<User> find() {
		// TODO Auto-generated method stub
		return um.find();
	}

	public void add(User user) {
		// TODO Auto-generated method stub
		um.add(user);
	}

	public void update(User user) {
		// TODO Auto-generated method stub
		um.update(user);
	}

	public User findById(Integer id) {
		// TODO Auto-generated method stub
		return um.findById(id);
	}

	public void remove(Integer id) {
		// TODO Auto-generated method stub
		um.remove(id);
	}

}
